package com.iyunsir.suit.server.impl;

import com.iyunsir.suit.entity.Suit;
import com.iyunsir.suit.mapper.SuitMapper;
import com.iyunsir.suit.server.SuitService;
import com.iyunsir.suit.vo.SuitQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SuitServicelmpl implements SuitService {
@Resource
private SuitMapper suitMapper;


    @Override
    public List<Suit> getSuitList(SuitQuery param) {
        return suitMapper.getSuitList(param);
    }

    @Override
    public Long countSuitList(SuitQuery param) {
        return suitMapper.countSuitList(param);
    }

    @Override
    public void addSuit(Suit suit) {
        suitMapper.addSuit(suit);
    }

    @Override
    public void deleteSuitByIds(String ids) {
        suitMapper.deleteSuitByIds(ids);
    }

    @Override
    public Suit getSuitById(Integer id) {
        return suitMapper.getSuitById(id);
    }

    @Override
    public void updateSuit(Suit suit) {
        suitMapper.updateSuit(suit);
    }

}
